package com.example.cafe;

import com.example.cafe.work.dto.Result;
import com.example.cafe.work.service.UserService;
import com.example.cafe.work.service.UserinfoService;
import com.example.cafe.work.util.UserHolder;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class UserInfo {

    @Autowired
    UserinfoService userinfoService;
    @Autowired
    UserService userService;

    @Test
    public void test2(){
        Result recharge = userinfoService.Recharge("958681ec09bd4f3f96ceb758d068a0a8", 21);
        System.out.println(recharge);
    }
    @Test
    public void login(){
        userService.login("update","123");
//        UserHolder.getUser();
    }
    @Test
    public void test3(){
        System.out.println(UserHolder.getUser());
    }

}
